package com.wpen.unit.web.dto.system;

import java.io.Serializable;

import com.wpen.unit.commun.BaseRequest;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.Size;

/**
 * 系统数据字典-新增请求报文.
 * 
 * @author Wang Peng
 * @date 2022-12-23
 */
@Schema(description = "系统数据字典-新增(请求)")
@Data
@EqualsAndHashCode(callSuper=false)
public class DictionaryAddRequest extends BaseRequest implements Serializable {
    private static final long serialVersionUID = 3748013572408380531L;

    @Schema(description =  "组编码", required = true)
    @NotEmpty
    @Size(min = 0, max = 16)
    private String dictGroup;
    @Schema(description =  "名称", required = true)
    @NotEmpty
    @Size(min = 0, max = 32)
    private String dictLabel;
    @Schema(description =  "数值", required = true)
    @NotEmpty
    @Size(min = 0, max = 32)
    private String dictValue;
    @Schema(description =  "显示样式")
    @Size(min = 0, max = 16)
    private String dictStyle;
    @Schema(description =  "是否默认", required = true)
    @NotEmpty
    @Size(min = 0, max = 1)
    private String dictDefault;
    @Schema(description =  "顺序号")
    private Integer orders;
    @Schema(description =  "父ID")
    @Size(min = 0, max = 32)
    private String dictPid;
    @Schema(description =  "描述")
    @Size(min = 0, max = 256)
    private String dictDesc;
    @Schema(description =  "启用状态", required = true)
    @NotEmpty
    @Size(min = 0, max = 1)
    private String status;

}